package com.weixinli.biz.impl;

import java.util.List;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.weixinli.beans.Admin;
import com.weixinli.biz.IAdminBiz;
import com.weixinli.dao.IAdminDao;
@Service("iAdminBiz")
public class AdminBizImpl implements IAdminBiz{
	private IAdminDao iAdminDao;
	
	public int addAdmin(Admin ad) {
		return iAdminDao.addAdmin(ad);
	}

	public int delAdmin(Admin ad) {
		return iAdminDao.delAdmin(ad);
	}

	public int modAdmin(Admin ad) {
		return iAdminDao.modAdmin(ad);
	}

	public List<Admin> findAdmin() {
		return iAdminDao.findAdmin();
	}

	public Admin checkAdmin(Admin ad) {
		return iAdminDao.checkAdmin(ad);
	}

	@Resource(name="iAdminDao")
	public void setiAdminDao(IAdminDao iAdminDao) {
		this.iAdminDao = iAdminDao;
	}
}
